<layout name="../../Admin/View/master"/>

<div class="panel panel-primary">
    <!-- Default panel contents -->
    <div class="panel-heading">订单详情</div>
    <div class="panel-body">
        <ul class="list-group">
            <li class="list-group-item">订单编号 :<span style="margin-left: 50px;color:black;">{$good['ordernumber']}</span>
            </li>
            <li class="list-group-item">收件人 :<span style="margin-left: 50px;color:black;">{$good['postname']}</span>
            </li>
            <li class="list-group-item">收件地址 :<span style="margin-left: 50px;color:black;">{$good['postaddr']} 元</span>
            </li>
            <li class="list-group-item">联系电话 :<span style="margin-left: 50px;color:black;">{$good['phone']} </span>
            </li>
            <li class="list-group-item">邮政编码 :<span style="margin-left: 50px;color:black;">{$good['postcode']} </span>
            </li>
            <li class="list-group-item">商品总数量 :<span
                    style="margin-left: 50px;color:black;">{$good['count']} </span></li>
            <li class="list-group-item">订单总价格 :<span style="margin-left: 50px;color:black;">￥ {$good['paymoney']}</span>
            </li>
            <li class="list-group-item">下单时间 :<span style="margin-left: 50px;color:black;">{:date('Y年m月d日 H:i:s',$good['paytime'])}</span>
            </li>
            <li class="list-group-item">下单账号:<span style="margin-left: 50px;color:black;">{$good['uname']}</span>
            </li>
            <li class="list-group-item">发票信息:<span style="margin-left: 50px;color:black;">{$good['invoice']}</span>
            </li>

            <li class="list-group-item" style="height: auto;overflow: hidden">订单详情:
                <foreach name="good['orderinfo']" item="vo">
                <div style="padding: 5px 5px;clear: both;">
                    <p style="width: 80px;height: 80px;float: left;"><img width="80px" height="80px" src="{$vo['thumb']}" alt=""></p>
                    <p style="float: left;width: 300px">{$vo['gname']}</p>
                    <p style="float: left;margin-left: 20px;color: orangered">货品编号：{$vo['pcid']}</p>

                </div>
                </foreach>
            </li>
            <li class="list-group-item">状态:<span style="margin-left: 50px;color:black;">
                <if condition="$good['orderstatus'] eq 0">
                    <a href="{:U('shipping',['uoid'=>$good['uoid']])}" class="btn btn-success">发货</a>
                    <else />
                    已发货
                </if>
            </span>
            </li>
        </ul>
    </div>


</div>

